<template>
  <div>
    <my-menu ></my-menu>
    <router-view></router-view>
  </div>
</template>

<script>
  export default {
     beforeRouteEnter(to, from, next){
      if(localStorage.login != 'true'){
        next('/login')
      }
      else next()
    },
  }
</script>

<style scoped>

</style>
